{% extends "base.html" %}
{% import '_macros.html' as macros %}
{% block main %}
    {{ super() }}
    {% include '_article_list.html' %}
    {% if articles %}
        {% if endpoint == '.index' %}
            {{ macros.pagination_widget(pagination, endpoint) }}
        {% else %}
            {{ macros.pagination_widget(pagination, endpoint, id=id) }}
        {% endif %}
    {% endif %}
{% endblock %}